#ifndef _CODEC_LOG_H_
#define _CODEC_LOG_H_

#include <linux/printk.h>

# ifndef DEBUG_NAME

#   define dprintk(level, fmt, arg...)          \
    if (debug >= level) {                       \
        pr_info(fmt, ## arg);                   \
    }

# else

#   define dprintk(level, fmt, arg...)          \
    if (debug >= level) {                       \
        pr_info(DEBUG_NAME " %d: " fmt, __LINE__, ## arg);         \
    }

# endif



#endif
